bbsApp.controller("topicsCtrl", ["$rootScope", '$scope', '$http', '$location', '$state','lyfUtils','selectArrays', function($rootScope, $scope, $http, $location,$state,lyfUtils,selectArrays){
	//初始化
	$scope.init = function(){
		$scope.name = "Hello World!!!";
		
		$http.post('topic/topicList.do', {id: $scope.id}).success(function (result) {
            $scope.data0 = result.data;
        });
	}	
	
	$scope.toPublish = function(){
		$state.go('publish');
	}
	
	$scope.toTopic = function(){
		var param = {id : '2'};
		 $state.go('topic', param);
	}
}]);
